package cz.muni.fi.hauntedhouses.to;

import cz.muni.fi.hauntedhouses.enums.Fear;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Wendy
 */
@XmlRootElement
public class SkillTO {
            
    private Long id;
    
    private String name;
    
    private Integer power;
    
    private Fear causesFear;
    
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Fear getCausesFear() {
        return causesFear;
    }

    public void setCausesFear(Fear causesFear) {
        this.causesFear = causesFear;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String toString(){
        return "SkillTO[id:"+id+",name:"+name+", power:"+power+", causesFear:"+causesFear+", description:"+description+"]";
    }
    
    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SkillTO other = (SkillTO) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }
}
